@import "module/variable";
@import "module/initCSS";
@import "module/header";
@import "module/user_tabs";
@import "module/footer";

.common-header {
    @include commonHeader();

}

.user-tabs {
    float: right;
    @include userTabs(#623e77, #623e77, #623e77, #000, '../images/home/cr_icon1.png');
}
img{
  max-width: 100%;
}
.inner-box {
    padding: 0 45px;
}
.inner-box-1{
  padding: 0 116px 0 120px;
}
.tabs{
  a {
    float: left;
    line-height: 42px;
    font-size: 15px;
    font-weight: bold;
    color: #242728;
    &:hover, &.current {
      color: #81b000;
    }
  }
  .line {
    @extend .hideFont;
    float: left;
    width: 1px;
    height: 12px;
    background: #979797;
    margin: 19px 17px 0;
    position: relative;
    top: -3px;
  }
}
.btn{
  cursor: pointer;
}
.fill-blank{
  height: 88px;
}
.course-block {
    padding: 43px 0 0 0;
    .course-title {
        float: left;
        h2 {
            float: left;
            font-size: 20px;
            font-weight: bold;
            color: #242728;
            line-height: 42px;
            padding: 0 55px 0 0;
        }
        .course-tabs {
            float: left;
            @extend .tabs
        }
    }

    .report-feedback {
        float: right;
        height: 38px;
        border: 2px solid #81b000;
        line-height: 38px;
        font-size: 15px;
        color: #81b000;
        padding: 0 19px 0 12px;
    }

    .course-cons {
    }

    .learned-list {
        border-spacing: 0;
        border-collapse: collapse;
        width: 100%;
        &.martb{
            margin: 30px 0 10px 0;
        }
        th {
            font-weight: bold;
            line-height: 35px;
            background: #f2f3f4;
            position: relative;
            z-index: $zindexMin;
            padding: 0 15px;
            &.act{
                padding-right: 40px;
            }
            span {
                display: block;
                @extend .hideFont;
                width: 1px;
                height: 21px;
                position: absolute;
                z-index: $zindexMin;
                top: 7px;
                background: #e4e5e6;
                &.fir-line {
                    left: 0;
                }
                &.last-line {
                    right: 0;
                }
            }
        }
        
        td{
            font-size: 15px;
            line-height: 1;
            padding: 17px 15px 18px;
            &.act{
                padding-right: 40px;
            }
            .red{
                color: #d93c3c;
            }
            .delete{
                font-size: 20px;
                color: #777777;
                margin-right: 14px;
            }
        }
        
        tbody{
            tr{
                margin: 10px 0;
                border-bottom: 1px solid #f0f0f0;
                &:hover{
                    background: #f2f3f4;
                    td{
                        .delete{
                            color: #d93c3c;
                        }
                    }
                }

            }
        }
        
        .tar{
            text-align: right;
        }
        .tac{
            text-align: center;
        }
    }
    .course-title-1{
      h2{
        font-size: 30px;
        color: #242728;
        font-weight: bold;
      }
    }
    .course-info{
       .details{
         float: left;
         width: 330px;
         .list{
           margin-top: 35px;
           font-size: 15px;
           li{
             border-bottom: 1px solid #e3e3e3;
             position: relative;
             >span{
               display: inline-block;
               padding: 14px 0 16px 0;
             }
             >span:first-child{
               font-weight: bold;
               margin-right: 24px;
               min-width: 85px;
             }
             .btn{
               position: absolute;
               right: 10px;
               top: 6px;
               background-color: #9ec929;
               color: #fff;
               padding: 8px 15px 10px 15px;
             }
           }
         }
       }
      .course-video{
        float: left;
        margin-left: 10%;
        width: 592px;
        height: 402px;
        border: 1px dotted #999;
      }
    }
}
.main-section{
  margin-top: 47px;
  .comment-area{
    position: relative;
    textarea{
      width: 100%;
      margin-top: 11px;
      border-radius: 5px;
      border: 1px solid #e5e5e5;
      height: 98px;
      resize: none;
      padding: 10px 130px 10px 20px;
      box-sizing: border-box;
    }
    button{
      position: absolute;
      bottom: 12px;
      right: 14px;
      border: none;
      background-color: #623e77;
      color: #fff;
      font-size: 13px;
      padding: 10px 24px;
      outline: none;
      cursor: pointer;
    }
  }
  .comments{
    padding: 10px 20px;
    .item{
      position: relative;
      border-bottom: 1px solid #e3e3e3;
      padding-top: 8px;
      padding-bottom: 8px;
      .origin{
        position: relative;
      }
      .btn{
        position: absolute;
        font-size: 15px;
        color: #2e8e57;
        right: 20px;
        bottom: 5px;
      }
    }
    .reply{
      width: 90%;
      float: right;
      background-color: #f5f5f5;
      padding: 10px 10px;
      box-sizing: border-box;
      margin-top: 10px;
      textarea{
        width: 100%;
        height: 60px;
        padding: 6px 70px 6px 6px;
        border-radius: 5px;
        border: 1px solid #e5e5e5;
        resize: none;
        box-sizing: border-box;
        &:focus{
          border-color: #46c37b;
        }
      }
    }
    .person{
      float: left;
      .avatar{
        float: left;
        width: 45px;
        height: 45px;
        border-radius: 50%;
      }
      .info{
        float: left;
        margin-left: 17px;
        line-height: 1.5em;
        font-size: 15px;
        .name{
          max-width: 100px;
          color: #623e77;
        }
        .time{
          max-width: 100px;
          font-size: 13px;
        }
      }
    }
    .cont{
      float: left;
      padding: 10px 50px 10px 25px;
      font-size: 15px;
    }
  }
  .show-more{
    text-align: right;
    padding: 5px 20px;
    a:hover{
      color: #81b000;
    }
  }
  .chapters{
    margin-top: 10px;
    .chapter-item{
      margin-bottom: 8px;
    }
    .chapter-info.active{
      .unfold{
        -webkit-transform: rotate(-180deg);
        -moz-transform: rotate(-180deg);
        -ms-transform: rotate(-180deg);
        -o-transform: rotate(-180deg);
        transform: rotate(-180deg);
      }
    }
    .chapter-info{
      background-color: #f3f3f3;
      padding: 7px 15px;
      position: relative;
      .name{
        color: #909090;
        font-size: 15px;
        font-weight: bold;
        span{
          margin-left: 15px;
        }
      }
      .unfold{
        position: absolute;
        right: 10px;
        top: 7px;
        -webkit-transition: transform 600ms;
        -moz-transition: transform  600ms;
        -ms-transition: transform  600ms;
        -o-transition: transform 600ms;
        transition: transform  600ms;
        i{
          font-weight: bold;
        }
      }
    }
    .chapter-class{
      .item{
        padding-right: 100px;
        border-bottom: 1px solid #e3e3e3;
        position: relative;
        color: #bfbfbf;
        cursor: pointer;
        &:hover{
          color: #a0ca2e;
        }
        .class-info{
          padding: 10px 20px;
           span{
             font-size: 15px;
           }
          i{
            margin-right: 15px;
          }
        }
        .download{
          color: #fff;
          background-color: #c4c4c4;
          padding: 5px 10px;
          border-radius: 5px;
          position: absolute;
          right: 10px;
          top: 6px;
        }
      }
      .item.has-learned{
        &:hover{
          color: #a0ca2e;
          .class-info{
            span{
              color: #a0ca2e;
            }
          }
        }
        .class-info{
          span{
            color: #623e77;
          }
          i{
            color: #9ec929;
          }
        }
        .download{
          background-color: #623e77;
        }
      }
    }
  }
}
.related-suggestion{
  .header{
    position: relative;
    padding: 30px 0px;
    h2{
      font-size: 20px;
      font-weight: bold;
    }
    .page-btn{
      position: absolute;
      right: 20px;
      top: 25px;
      i{
        color: rgb(153, 153, 153);
        font-weight: bold;
        font-size: 20px;
      }
      span.btn{
        display: inline-block;
        border: 1px solid rgb(230, 230, 230);
        padding: 3px 3px;
      }
      .back{
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
      }
      .disabled{
        i{
          color: rgb(221, 221, 221);
        }
      }
      .forward{
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: -1px;
      }
    }
  }
  .cont{
    li{
      float: left;
      width: 25%;
      box-sizing: border-box;
      padding-right: 30px;
      .title{
        margin-top: 10px;
        font-weight: bold;
        font-size: 16px;
      }
    }
  }
  img{
    max-width: 100%;
  }
}
.bot-line-1{
  border-bottom: 2px solid #623e77;
}
@mixin videoList() {
    margin: 0 -7px;
    li {
        float: left;
        width: 20%;
        padding: 0 7px;
        margin-bottom: 20px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        .img-box {
            display: block;
            position: relative;
            z-index: $zindexMin;
            img {
                display: block;
                width: 100%;
            }
            .video-info {
                position: absolute;
                z-index: $zindexMin;
                left: 0;
                bottom: 0;
                height: 22px;
                width: 100%;
                &:before {
                    display: block;
                    content: ' ';
                    position: absolute;
                    z-index: $zindexMin;
                    width: 100%;
                    height: 100%;
                    background: #000;
                    opacity: 0.5;
                    filter: alpha(opacity=50);
                }
                div {
                    font-size: 15px;
                    line-height: 22px;
                    color: #ffffff;
                    padding: 0 8px;
                    position: relative;
                    z-index: $zindexMin;
                }
                .count {
                    float: left;
                }
                .long {
                    float: right;
                }
            }

            .hover-box {
                -webkit-transition: all .5s ease-in-out;
                -moz-transition: all .5s ease-in-out;
                -ms-transition: all .5s ease-in-out;
                -o-transition: all .5s ease-in-out;
                transition: all .5s ease-in-out;
                opacity: 0;
                filter: alpha(opacity=0);
                position: absolute;
                z-index: $zindexMin;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                &:before {
                    display: block;
                    content: ' ';
                    position: absolute;
                    z-index: $zindexMin;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    opacity: 0.5;
                    filter: alpha(opacity=50);
                    background: #000;
                }

                h3, p {
                    position: absolute;
                    z-index: $zindexMin;
                    top: 50%;
                    left: 0;
                    width: 100%;
                    font-size: 13px;
                    font-weight: normal;
                    line-height: 1;
                    color: #81b000;
                    text-align: center;
                    -webkit-transform: translateY(-50%);
                    -moz-transform: translateY(-50%);
                    -ms-transform: translateY(-50%);
                    -o-transform: translateY(-50%);
                    transform: translateY(-50%);
                }
                p {
                    -webkit-transform: translateY(100%);
                    -moz-transform: translateY(100%);
                    -ms-transform: translateY(100%);
                    -o-transform: translateY(100%);
                    transform: translateY(100%);
                }

                .act-btn {
                    display: block;
                    position: absolute;
                    z-index: $zindexMin;
                    top: 7px;
                    right: 12px;
                    width: 30px;
                    height: 30px;
                    color: red;
                    font-size: 26px;
                    font-weight: normal;
                    line-height: 30px;
                    text-align: center;

                    &.add {
                        color: #81b000;
                    }
                }
            }
        }
        .video-txt {
            font-size: 15px;
            font-weight: bold;
            line-height: 1;
            h3 {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                a {
                    @extend .video-txt;
                }
                padding: 10px 0;
                span {
                    font-weight: normal;
                }
            }
            p {
                @extend .video-txt;
                padding: 2px 0;
            }
        }

        &:hover {
            .img-box {
                .hover-box {
                    opacity: 1;
                    filter: alpha(opacity=100);
                }
            }
            .video-txt {
                h3 {
                    a {
                        color: #81b000;
                    }
                }
                p {
                    color: #81b000;
                }
            }
        }
    }
}

.video-list {
    @include videoList();
    padding: 26px 0 0 0;
}

.open-courses {
    .title {
        img {
            display: block;
            margin: 10px auto 44px;
        }
    }

    dl {
        border-bottom: 1px dashed #d2d2d2;
        padding: 16px 0 0 0;
        &.nobd {
            border: none;
        }
        dt {
            float: left;
            width: 110px;
            text-align: right;
            font-size: 15px;
            font-weight: bold;
        }
        dd {
            padding: 0 0 0 160px;
            a {
                display: inline-block;
                margin: 0 80px 20px 0;
                &:hover, &.current {
                    color: #81b000;
                }
            }
            select {
                outline: none;
                background: #f6f6f6;
            }
        }
    }


    .show-more{
        text-align: right;
        a:hover{
            color: #81b000;
            i{
                color: #81b000;
            }
        }
    }
}

.video-list-open {
    @include videoList();
    padding: 40px 0 0 0;
}

.footer {
    @include commonFooter();
    margin-top: 60px;
}
